﻿using System;

namespace SBPweb.RIA.Shared.Contracts.Events
{

    public class CancelEventArgs : EventArgs<bool>
    {

        public CancelEventArgs()
        {
        }

        public CancelEventArgs(bool cancel)
            : base(cancel)
        {
        }

        public bool Cancel
        {
            get
            {
                return Result;
            }
            set
            {
                Result = value;
            }
        }

        public static implicit operator System.ComponentModel.CancelEventArgs(CancelEventArgs e)
        {
            return new System.ComponentModel.CancelEventArgs(e.Cancel);
        }

        public static implicit operator CancelEventArgs(System.ComponentModel.CancelEventArgs e)
        {
            return new CancelEventArgs(e.Cancel);
        }

    }

}